package com.zzyl.vo;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Description NursingProjectVo
 * @Author wangwei
 * @Date 2024-08-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NursingPageVo<T> {
    private Long total;
    private Integer pageSize;
    private Integer pages;
    private Integer page;
    private List<T> records;
    public NursingPageVo (Page page){
        this.total = page.getTotal();
        this.pageSize = page.getPageSize();
        this.pages = page.getPages();
        this.page = page.getPageNum();
    }
}
